<?php
@session_start();
include_once("/Smarty/Smarty_Config.php");
define("PROJECT_NAME", "equipment-manage-system");
define("PROJECT_DIR", rtrim($_SERVER['DOCUMENT_ROOT'],"/")."/".constant('PROJECT_NAME'));
define("PROJECT_URL", "http://127.0.0.1"."/equipment-manage-system");
define("PICTURE_SUBDIR", "uploadpictures");
define("PROJECT_UPLOAD_FILE", constant('PROJECT_DIR')."/".constant('PICTURE_SUBDIR'));
define("MD5_KEY", "JUST_TEST");
//echo constant('PROJECT_DIR');
if (getenv('HTTP_CLIENT_IP'))
        {
            $ip = getenv('HTTP_CLIENT_IP');
        } elseif (getenv('HTTP_X_FORWARDED_FOR'))
        {
            $ip = getenv('HTTP_X_FORWARDED_FOR');
        } elseif (getenv('REMOTE_ADDR'))
        {
            $ip = getenv('REMOTE_ADDR');
        } else
        {
            $ip = $HTTP_SERVER_VARS['REMOTE_ADDR'];
        }
define("CLIENT_IP",$ip);
//echo constant('CLIENT_IP');
?>
